package sziit.znk.utils;

import sziit.znk.utils.Enum.ClassType;

import java.lang.annotation.Annotation;

public class IfComponent {

    public static boolean havingComponentAnnotation(Annotation annotation){
        if (annotation.toString().equals(ClassType.ANNOTATION_COMPONENT.getClassType())
                || annotation.toString().equals(ClassType.ANNOTATION_CONTROLLER.getClassType())
                || annotation.toString().equals(ClassType.ANNOTATION_REPOSITORY.getClassType())
                || annotation.toString().equals(ClassType.ANNOTATION_CONFIGURATION.getClassType())
                || annotation.toString().equals(ClassType.ANNOTATION_SERVICE.getClassType())
                || annotation.toString().equals(ClassType.ANNOTATION_EASYCODINGAPPLICATION.getClassType())
        ) return true;
        return false;
    }

}
